/**
 * Created by jhg on 2017-03-18.
 */


//加载的时候运行
$(function(){

    //查询
    $("#search").click(function(){
        FindData();
    });
});



//查找数据
function FindData() {
    //$('#unlockedUser').attr("disabled", true);

    var em_name=$("#em_name").val();

    $.ajax({
        url: serverPath+"EM/find",
        xhrFields:{ withCredentials:true},
        data:{"em_name":em_name},
        dataType:"json",
        success: function(result){
            var data=result.data;
            $("#em_table").bootstrapTable('load',data);
            $("#em_table").tableHideCheckbox();
        },
        error:function(){
            //alert(1111);
        }
    });
}